package com.wfh.rpc.loadbalancer;

import com.wfh.rpc.model.ServiceModelInfo;

import java.util.List;
import java.util.Map;

/**
 * @Title: LoadBalancer
 * @Author wangfenghuan
 * @Package com.wfh.rpc.loadbalancer
 * @Date 2025/10/16 20:55
 * @description: 自定义负载均衡器
 */
public interface LoadBalancer {

    /**
     * 选择服务调用
     * @param requestParams
     * @param serviceModelInfoList
     * @return
     */
    ServiceModelInfo select(Map<String, Object> requestParams, List<ServiceModelInfo> serviceModelInfoList);

}
